using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Resources;
using System.Runtime.Serialization;
using System.Text;
using System.Threading.Tasks;

namespace KPIS.GERP.Models.HRM
{
	[Table("HrmPrmPromotionBase")]
    public class PrmPromotionBase
    {
		[Key, DatabaseGenerated(DatabaseGeneratedOption.Identity)]
		[DataMember, Display(Name = "PrmBaseId", ResourceType = typeof(Resources.PrmPromotionBasesResource))]
        public int PrmBaseId { get; set; }

		[ForeignKey("SalGrp")]
		[DataMember, Display(Name = "SalGrpId", ResourceType = typeof(Resources.PrmPromotionBasesResource))]
        public Nullable<int> SalGrpId { get; set; }

		[DataMember, Display(Name = "SalBase", ResourceType = typeof(Resources.PrmPromotionBasesResource))]
        public Nullable<double> SalBase { get; set; }

		[DataMember, Display(Name = "SalMin", ResourceType = typeof(Resources.PrmPromotionBasesResource))]
        public Nullable<double> SalMin { get; set; }

		[DataMember, Display(Name = "SalMax", ResourceType = typeof(Resources.PrmPromotionBasesResource))]
        public Nullable<double> SalMax { get; set; }

		[DataMember, Display(Name = "SalExtra", ResourceType = typeof(Resources.PrmPromotionBasesResource))]
        public Nullable<double> SalExtra { get; set; }

		[DataMember, Display(Name = "SalExtraBase", ResourceType = typeof(Resources.PrmPromotionBasesResource))]
        public Nullable<double> SalExtraBase { get; set; }

		[DataMember, Display(Name = "SalExtraMin", ResourceType = typeof(Resources.PrmPromotionBasesResource))]
        public Nullable<double> SalExtraMin { get; set; }

		[DataMember, Display(Name = "SalExtraMax", ResourceType = typeof(Resources.PrmPromotionBasesResource))]
        public Nullable<double> SalExtraMax { get; set; }

		[ForeignKey("Prm")]
		[DataMember, Display(Name = "PrmId", ResourceType = typeof(Resources.PrmPromotionBasesResource))]
        public Nullable<int> PrmId { get; set; }

		[DataMember, Display(Name = "Remarks", ResourceType = typeof(Resources.PrmPromotionBasesResource))]
        public string Remarks { get; set; }

		[DataMember, Display(Name = "RecordStatus", ResourceType = typeof(Resources.PrmPromotionBasesResource))]
        public string RecordStatus { get; set; }

		[DataMember, Display(Name = "CreatedBy", ResourceType = typeof(Resources.PrmPromotionBasesResource))]
        public Nullable<int> CreatedBy { get; set; }

		[DataMember, Display(Name = "CreatedWhen", ResourceType = typeof(Resources.PrmPromotionBasesResource))]
        public Nullable<System.DateTime> CreatedWhen { get; set; }

		[DataMember, Display(Name = "UpdatedBy", ResourceType = typeof(Resources.PrmPromotionBasesResource))]
        public Nullable<int> UpdatedBy { get; set; }

		[DataMember, Display(Name = "UpdatedWhen", ResourceType = typeof(Resources.PrmPromotionBasesResource))]
        public Nullable<System.DateTime> UpdatedWhen { get; set; }

		[DataMember, Display(Name = "SalLevelName", ResourceType = typeof(Resources.PrmPromotionBasesResource))]
        public string SalLevelName { get; set; }

		public virtual HRM.PrSalaryGroup SalGrp { get; set; }

		public virtual HRM.PrmPromotion Prm { get; set; }

    }
}